﻿var UIAlertDialogApi = function () {

    var handleDialogs = function() {

        $('#deleteChoose, .delete-choose').on("click", function () {
            bootbox.dialog({
                message: "Muốn xóa thì bước qua xác tao",
                title: "Muốn xóa hả",
                buttons: {
                    success: {
                        label: "Xóa",
                        className: "red",
                        callback: function () {
                            alert("great success");
                        }
                    },
                    main: {
                        label: "Đóng",
                        className: "grey"
                    }
                }
            });
        });

        $(".delete-choose").on("click", function () {
            //
        });

    }

    return {

        //main function to initiate the module
        init: function () {
            handleDialogs();
        }
    };

}();